﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Miris.HumanMilkAnalyser.WPF.Model;
using Miris.HumanMilkAnalyser.WPF.Shared;

namespace Miris.HumanMilkAnalyser.WPF.ViewModel
{
    public class PatientQuickSearchResultItemViewModel : MyViewModelBase
    {
        /// <summary>
        /// Initializes a new instance of the PatientQuickSearchResultItemViewModel class.
        /// </summary>
        public PatientQuickSearchResultItemViewModel(IDataService dataService)
            : base(dataService) { }

        /// <summary>
        /// The <see cref="SequenceNumber" /> property's name.
        /// </summary>
        public const string SequenceNumberPropertyName = "SequenceNumber";

        private int _sequenceNumber = 0;

        /// <summary>
        /// Sets and gets the SequenceNumber property.
        /// Changes to that property's value raise the PropertyChanged event. 
        /// </summary>
        public int SequenceNumber
        {
            get
            {
                return _sequenceNumber;
            }

            set
            {
                if (_sequenceNumber == value)
                {
                    return;
                }

                RaisePropertyChanging(SequenceNumberPropertyName);
                _sequenceNumber = value;
                RaisePropertyChanged(SequenceNumberPropertyName);
            }
        }

        /// <summary>
        /// The <see cref="PatientNumber" /> property's name.
        /// </summary>
        public const string PatientNumberPropertyName = "PatientNumber";

        private string _patientNumber = string.Empty;

        /// <summary>
        /// Sets and gets the PatientNumber property.
        /// Changes to that property's value raise the PropertyChanged event. 
        /// </summary>
        public string PatientNumber
        {
            get
            {
                return _patientNumber;
            }

            set
            {
                if (_patientNumber == value)
                {
                    return;
                }

                RaisePropertyChanging(PatientNumberPropertyName);
                _patientNumber = value;
                RaisePropertyChanged(PatientNumberPropertyName);
            }
        }

        /// <summary>
        /// The <see cref="MotherName" /> property's name.
        /// </summary>
        public const string MotherNamePropertyName = "MotherName";

        private string _motherName = string.Empty;

        /// <summary>
        /// Sets and gets the MotherName property.
        /// Changes to that property's value raise the PropertyChanged event. 
        /// </summary>
        public string MotherName
        {
            get
            {
                return _motherName;
            }

            set
            {
                if (_motherName == value)
                {
                    return;
                }

                RaisePropertyChanging(MotherNamePropertyName);
                _motherName = value;
                RaisePropertyChanged(MotherNamePropertyName);
            }
        }

        /// <summary>
        /// The <see cref="BabyName" /> property's name.
        /// </summary>
        public const string BabyNamePropertyName = "BabyName";

        private string _babyName = string.Empty;

        /// <summary>
        /// Sets and gets the BabyName property.
        /// Changes to that property's value raise the PropertyChanged event. 
        /// </summary>
        public string BabyName
        {
            get
            {
                return _babyName;
            }

            set
            {
                if (_babyName == value)
                {
                    return;
                }

                RaisePropertyChanging(BabyNamePropertyName);
                _babyName = value;
                RaisePropertyChanged(BabyNamePropertyName);
            }
        }

        /// <summary>
        /// The <see cref="LastTestDateDisplay" /> property's name.
        /// </summary>
        public const string LastTestDateDisplayPropertyName = "LastTestDateDisplay";

        private string _lastTestDateDisplay = string.Empty;

        /// <summary>
        /// Sets and gets the LastTestDateDisplay property.
        /// Changes to that property's value raise the PropertyChanged event. 
        /// </summary>
        public string LastTestDateDisplay
        {
            get
            {
                return _lastTestDateDisplay;
            }

            set
            {
                if (_lastTestDateDisplay == value)
                {
                    return;
                }

                RaisePropertyChanging(LastTestDateDisplayPropertyName);
                _lastTestDateDisplay = value;
                RaisePropertyChanged(LastTestDateDisplayPropertyName);
            }
        }

        /// <summary>
        /// The <see cref="TestCount" /> property's name.
        /// </summary>
        public const string TestCountPropertyName = "TestCount";

        private int _testCount = 0;

        /// <summary>
        /// Sets and gets the TestCount property.
        /// Changes to that property's value raise the PropertyChanged event. 
        /// </summary>
        public int TestCount
        {
            get
            {
                return _testCount;
            }

            set
            {
                if (_testCount == value)
                {
                    return;
                }

                RaisePropertyChanging(TestCountPropertyName);
                _testCount = value;
                RaisePropertyChanged(TestCountPropertyName);
            }
        }
    }
}
